

/*
 *文字1，14，17，18，20，21，22，24
 */
function content1(text,num){
    var text1=text.slice(0,11);
    var text2=text.slice(11,19);
    var text3=text.slice(19,32);
    var text4=text.slice(32,43);
    var text5=text.slice(43,51);
    var text6=text.slice(51,67);
    // console.log(text1,text2,text3,text4,text5)
    if(text6){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6;
    }else if(text5){
        var word=text1 + "<br/>"+ text2 +"<br/>"+  text3 +"<br/>"+  text4 +"<br/>"+ text5;
    }else if(text4){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4;
    }else if(text3){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3;
    }else if(text2){
        var word=text1 +"<br/>"+ text2;
    }else if(text1){
        var word=text1;
    }else{
        var word="";
    }
    $('.text'+num).html(word);
}
/*
 *文字2，6
 */
function content2(text,num){
    var text1=text.slice(0,7);
    var text2=text.slice(7,16);
    var text3=text.slice(16,27);
    var text4=text.slice(27,34);
    var text5=text.slice(34,44);
    var text6=text.slice(44,51);
    // console.log(text1,text2,text3,text4,text5)
    if(text6){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6;
    }else if(text5){
        var word=text1 + "<br/>"+ text2 +"<br/>"+  text3 +"<br/>"+  text4 +"<br/>"+ text5;
    }else if(text4){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4;
    }else if(text3){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3;
    }else if(text2){
        var word=text1 +"<br/>"+ text2;
    }else if(text1){
        var word=text1;
    }else{
        var word="";
    }
    // console.log(text,num);
    $('.text'+num).html(word);
}
/*
 *文字3，12，19
 */
function content3(text,num){
    var text1=text.slice(0,25);
    var text2=text.slice(25,52);
    var text3=text.slice(52,75);
    // console.log(text1,text2,text3,text4,text5)
    if(text3){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3;
    }else if(text2){
        var word=text1 +"<br/>"+ text2;
    }else if(text1){
        var word=text1;
    }else{
        var word="";
    }
    // console.log(text,num);
    $('.text'+num).html(word);
}
/*
 *文字4，5，8，9，10，13，23
 */
function content4(text,num){
    var text1=text.slice(0,7);
    var text2=text.slice(7,9);
    var text3=text.slice(9,20);
    var text4=text.slice(20,27);
    var text5=text.slice(27,37);
    var text6=text.slice(37,44);
    var text7=text.slice(44,51);
    var text8=text.slice(51,57);
    var text9=text.slice(57,62);
    var text10=text.slice(62,67);
    // console.log(text1,text2,text3,text4,text5)
    if(text10){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7+ "<br/>"+ text8+ "<br/>"+ text9+ "<br/>"+ text10;
    }else if(text9){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7+ "<br/>"+ text8+ "<br/>"+ text9;
    }else if(text8){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7+ "<br/>"+ text8;
    }else if(text7){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7;
    }else if(text6){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6;
    }else if(text5){
        var word=text1 + "<br/>"+ text2 +"<br/>"+  text3 +"<br/>"+  text4 +"<br/>"+ text5;
    }else if(text4){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4;
    }else if(text3){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3;
    }else if(text2){
        var word=text1 +"<br/>"+ text2;
    }else if(text1){
        var word=text1;
    }else{
        var word="";
    }
    $('.text'+num).html(word);
}
/*
 *文字7
 */
function content5(text,num){
    var text1=text.slice(0,9);
    var text2=text.slice(9,18);
    var text3=text.slice(18,27);
    var text4=text.slice(27,36);
    var text5=text.slice(36,45);
    var text6=text.slice(45,54);
    var text7=text.slice(54,63);
    var text8=text.slice(63,72);
    var text9=text.slice(72,75);
    if(text9){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7+ "<br/>"+ text8+ "<br/>"+ text9;
    }else if(text8){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7+ "<br/>"+ text8;
    }else if(text7){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7;
    }else if(text6){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6;
    }else if(text5){
        var word=text1 + "<br/>"+ text2 +"<br/>"+  text3 +"<br/>"+  text4 +"<br/>"+ text5;
    }else if(text4){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4;
    }else if(text3){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3;
    }else if(text2){
        var word=text1 +"<br/>"+ text2;
    }else if(text1){
        var word=text1;
    }else{
        var word="";
    }
    // console.log(word);
    $('.text'+num).html(word);
}
/*
 *文字11，15，16
 */
function content6(text,num){
    var text1=text.slice(0,11);
    var text2=text.slice(11,20);
    var text3=text.slice(20,33);
    var text4=text.slice(33,44);
    var text5=text.slice(44,51);
    var text6=text.slice(51,67);
    var text7=text.slice(67,76);
    var text8=text.slice(76,87);
    var text9=text.slice(87,103);
    if(text9){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7+ "<br/>"+ text8+ "<br/>"+ text9;
    }else if(text8){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7+ "<br/>"+ text8;
    }else if(text7){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6+ "<br/>"+ text7;
    }else if(text6){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4 + "<br/>"+ text5 + "<br/>"+ text6;
    }else if(text5){
        var word=text1 + "<br/>"+ text2 +"<br/>"+  text3 +"<br/>"+  text4 +"<br/>"+ text5;
    }else if(text4){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4;
    }else if(text3){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3;
    }else if(text2){
        var word=text1 +"<br/>"+ text2;
    }else if(text1){
        var word=text1;
    }else{
        var word="";
    }
    $('.text'+num).html(word);
}


var ROOT='http://www.youyiku-yishu.cn';
function t1(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content1">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe1">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img1" onclick="renewal(1,1)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang1"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+ img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+'/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In1">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,1)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input1"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text1" onclick="Version(1,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,1);
            }
        }

    })
}
function t2(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content2">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe2">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img2" onclick="renewal(1,2)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang2"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }  
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_2">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,2)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入55个字" maxlength="55" value=""  class="input input2"/>';
        page += '</div>';
     	page += '<div class="Input Input2">';
        page += '<div class="text text2" onclick="Version(2,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入55个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_3">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,3)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入78个字" maxlength="78" value=""  class="input input3"/>';
        page += '</div>';
     	page += '<div class="Input Input3">';
        page += '<div class="text text3" onclick="Version(3,2)">';
        if(text1){
            if(text1.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text1+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入78个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content2(text,2);
            }
        }
        if(text1){
            if(text1.toString().indexOf('pload')<0){
                content3(text1,3);
            }
        }

    })
}
function t3(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content3">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe3">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img3" onclick="renewal(1,3)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang3"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        // console.log(img);
                        isedit=Number(isedit);

                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        } 
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe4">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img4" onclick="renewal(2,4)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang4"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);

                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        } 
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';       
        page += '<div class="In In3">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,4)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input4"/>';
        page += '</div>';
        page += '<div class="Input Input4">';
        page += '<div class="text text4" onclick="Version(4,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }

        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content4(text,4);
            }

        }
    })
}
function t4(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content4">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe5">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img5" onclick="renewal(1,5)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang5"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe6">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img6" onclick="renewal(2,6)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang6"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        // console.log(isedit);
                        isedit=Number(isedit);

                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,5)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input5"/>';
        page += '</div>';
        page += '<div class="Input Input5">';
        page += '<div class="text text5" onclick="Version(5,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }

        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content4(text,5);
            }
        }
    })
}
function t5(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
       page += '<div class="content5">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe7">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img7" onclick="renewal(1,7)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang7"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe8">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img8" onclick="renewal(2,8)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang8"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_6">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,6)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入54个字" maxlength="54" value=""  class="input input6"/>';
        page += '</div>';
        page += '<div class="Input Input6">';
        page += '<div class="text text6" onclick="Version(6,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入54个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_7">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,7)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入78个字" maxlength="78" value=""  class="input input7"/>';
        page += '</div>';
        page += '<div class="Input7">';
        page += '<div class="text text7" onclick="Version(7,2)">';
        if(text1){
            if(text1.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text1+'"></div>'
            }
        }
        else{
            page+="最多输入78个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content2(text,6);
            }
        }
        if(text1){
            if(text1.toString().indexOf('pload')<0){
                content5(text1,7);
            }
        }
    })
}
function t6(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content6">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe9">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img9" onclick="renewal(1,9)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang9"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe10">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img10" onclick="renewal(2,10)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang10"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe11">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img11" onclick="renewal(3,11)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang11"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,8)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input8"/>';
        page += '</div>';
        page += '<div class="Input Input8">';
        page += '<div class="text text8" onclick="Version(8,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content4(text,8);
            }
        }
    })
}
function t7(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content7">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe12">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img12" onclick="renewal(1,12)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang12"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe13">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img13" onclick="renewal(2,13)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang13"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe14">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img14" onclick="renewal(3,14)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang14"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,9)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input9"/>';
        page += '</div>';
        page += '<div class="Input Input9">';
        page += '<div class="text text9" onclick="Version(9,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content4(text,9);
            }
        }
    })
}
function t8(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content8">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe15">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img15" onclick="renewal(1,15)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang15"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe16">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img16" onclick="renewal(2,16)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang16"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe17">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img17" onclick="renewal(3,17)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang17"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,10)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input10"/>';
        page += '</div>';
        page += '<div class="Input Input10">';
        page += '<div class="text text10" onclick="Version(10,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content4(text,10);
            }
        }
    })
}
function t9(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        // console.log(json);
        $('.Conter').html('');
        var page = "";
         page += '<div class="content9">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe18">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img18" onclick="renewal(1,18)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang18"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe19">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img19" onclick="renewal(2,19)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang19"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe20">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img20" onclick="renewal(3,20)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang20"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,11)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入105个字" maxlength="405" value=""  class="input input11"/>';
        page += '</div>';
        page += '<div class="Input Input11">';
        page += '<div class="text text11" onclick="Version(11,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入105个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content6(text,11);
            }
        }
    })
}
function t10(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content10">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe21">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img21" onclick="renewal(1,21)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang21"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe22">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img22" onclick="renewal(2,22)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang22"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe23">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img23" onclick="renewal(3,23)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang23"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe24">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img24" onclick="renewal(4,24)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang24"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,12)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入78个字" maxlength="78" value=""  class="input input12"/>';
        page += '</div>';
        page += '<div class="Input Input12">';
        page += '<div class="text text12" onclick="Version(12,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入78个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content3(text,12);
            }
        }
    })
}
function t11(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
         page += '<div class="content11">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe25">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img25" onclick="renewal(1,25)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang25"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe26">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img26" onclick="renewal(2,26)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang26"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe27">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img27" onclick="renewal(3,27)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang27"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe28">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img28" onclick="renewal(4,28)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang28"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,13)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input13"/>';
        page += '</div>';
        page += '<div class="Input Input13">';
        page += '<div class="text text13" onclick="Version(13,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content4(text,13);
            }
        }
    })
}
function t12(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content12">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe29">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img29" onclick="renewal(1,29)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang29"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe30">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img30" onclick="renewal(2,30)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang30"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe31">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img31" onclick="renewal(3,31)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang31"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe32">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img32" onclick="renewal(4,32)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang32"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,14)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input14"/>';
        page += '</div>';
        page += '<div class="Input Input14">';
        page += '<div class="text text14" onclick="Version(14,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,14);
            }
        }
    })
}
function t13(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content13">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe33">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img33" onclick="renewal(1,33)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang33"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe34">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img34" onclick="renewal(2,34)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang34"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe35">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img35" onclick="renewal(3,35)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang35"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe36">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img36" onclick="renewal(4,36)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang36"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,15)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入105个字" maxlength="105" value=""  class="input input15"/>';
        page += '</div>';
        page += '<div class="Input Input15">';
        page += '<div class="text text15" onclick="Version(15,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入105个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content6(text,15);
            }
        }
    })
}
function t14(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content14">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe37">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img37" onclick="renewal(1,37)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang37"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe38">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img38" onclick="renewal(2,38)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang38"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe39">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img39" onclick="renewal(3,39)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang39"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe40">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img40" onclick="renewal(4,40)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang40"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,16)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入105个字" maxlength="105" value=""  class="input input16"/>';
        page += '</div>';
        page += '<div class="Input Input16">';
        page += '<div class="text text16" onclick="Version(16,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入105个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content6(text,16);
            }
        }
    })
}
function t15(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content15">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe41">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img41" onclick="renewal(1,41)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang41"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In1">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,17)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input17"/>';
        page += '</div>';
        page += '<div class="Input Input17">';
        page += '<div class="text text17" onclick="Version(1,17)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }

        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,17);
            }

        }
    })
}
function t16(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content16">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe42">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img42" onclick="renewal(1,42)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang42"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In1">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,18)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input18"/>';
        page += '</div>';
        page += '<div class="Input Input18">';
        page += '<div class="text text18" onclick="Version(18,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }

        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,18);
            }

        }
    })
}
function t17(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content17">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe43">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img43" onclick="renewal(1,43)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang43"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe44">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img44" onclick="renewal(2,44)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang44"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,19)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入78个字" maxlength="78" value=""  class="input input19"/>';
        page += '</div>';
        page += '<div class="Input Input19">';
        page += '<div class="text text19" onclick="Version(19,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入78个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content3(text,19);
            }
        }
    })
}
function t18(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content18">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe45">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img45" onclick="renewal(1,45)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang45"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe46">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img46" onclick="renewal(2,46)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang46"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,20)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input20"/>';
        page += '</div>';
        page += '<div class="Input Input20">';
        page += '<div class="text text20" onclick="Version(20,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content3(text,20);
            }
        }
    })
}
function t19(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content19">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe47">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img47" onclick="renewal(1,47)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang47"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe48">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img48" onclick="renewal(2,48)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang48"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe49">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img49" onclick="renewal(3,49)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang49"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,21)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input21"/>';
        page += '</div>';
        page += '<div class="Input Input21">';
        page += '<div class="text text21" onclick="Version(21,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,21);
            }
        }
    })
}
function t20(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content20">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe50">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img50" onclick="renewal(1,50)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang50"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe51">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img51" onclick="renewal(2,51)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang51"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe52">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img52" onclick="renewal(3,52)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang52"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,22)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input22"/>';
        page += '</div>';
        page += '<div class="Input Input22">';
        page += '<div class="text text22" onclick="Version(22,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,22);
            }
        }
    })
}
function t21(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content21">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe53">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img53" onclick="renewal(1,53)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang53"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe54">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img54" onclick="renewal(2,54)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang54"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe55">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img55" onclick="renewal(3,55)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang55"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe56">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img56" onclick="renewal(4,56)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang56"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,23)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input23"/>';
        page += '</div>';
        page += '<div class="Input Input23">';
        page += '<div class="text text23" onclick="Version(23,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content4(text,23);
            }
        }
    })
}
function t22(inpage){
    var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content22">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="photoframe photoframe57">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img57" onclick="renewal(1,57)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang57"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
     	page += '<div class="photoframe photoframe58">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img58" onclick="renewal(2,58)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang58"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe59">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img59" onclick="renewal(3,59)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang59"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe60">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img60" onclick="renewal(4,60)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang60"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                        }
                    }

                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,24)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input24"/>';
        page += '</div>';
        page += '<div class="Input Input24">';
        page += '<div class="text text24" onclick="Version(24,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,24);
            }
        }
    })
}
//插页模板
function Cha_1(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content23">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';
		console.log(page)
        $('.Conter').html(page);
}
function Cha_2(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content16">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_3(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content17">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_4(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content18">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,19)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入330个字" maxlength="330" value=""  class="input input19"/>';
        page += '</div>';
        page += '<div class="Input19">';
        page += '<div class="text text19" onclick="Version(19,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入330个字";
        }
        page += '</div>';
        page += '</div>';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_5(inpage){
	var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
		$('.Conter').html('');
        var page = "";
        page += '<div class="content19">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe44">';
        page += '<div class="album-old">';
        page +='<div class="renewal r44" onclick="renewal(1,44)">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img44">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                         page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang44"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                    	 page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' appearance'+img[i].appearance+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                    }
                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
		page += '</div>';      
        $('.Conter').html(page);
    })
}
//模板
function moban(){
    $('.MB').html('');
    var page = "";
    var style = $('#style').val();
    page+='<div class="m1">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m1.jpg" class="MB-img" onclick="mb(1,this)"/>';
    page+='</div>';
    page+='<div class="m2">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m2.jpg" class="MB-img" onclick="mb(2,this)"/>';
    page+='</div>';
    page+='<div class="m3">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m3.jpg" class="MB-img" onclick="mb(3,this)"/>';
    page+='</div>';
    page+='<div class="m4">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m4.jpg" class="MB-img" onclick="mb(4,this)"/>';
    page+='</div>';
    page+='<div class="m5">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m5.jpg" class="MB-img" onclick="mb(5,this)"/>';
    page+='</div>';
    page+='<div class="m6">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m6.jpg" class="MB-img" onclick="mb(6,this)"/>';
    page+='</div>';
    page+='<div class="m7">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m7.jpg"class="MB-img"/ onclick="mb(7,this)">';
    page+='</div>';
    page+='<div class="m8">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m8.jpg"class="MB-img"/ onclick="mb(8,this)">';
    page+='</div>';
    page+='<div class="m9">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m9.jpg"class="MB-img"/ onclick="mb(9,this)">';
    page+='</div>';
    page+='<div class="m10">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m10.jpg"class="MB-img"/ onclick="mb(10,this)">';
    page+='</div>';
    page+='<div class="m11">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m11.jpg"class="MB-img"/ onclick="mb(11,this)">';
    page+='</div>';
    page+='<div class="m12">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m12.jpg"class="MB-img"/ onclick="mb(12,this)">';
    page+='</div>';
    page+='<div class="m13">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m13.jpg"class="MB-img"/ onclick="mb(13,this)">';
    page+='</div>';
    page+='<div class="m14">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m14.jpg"class="MB-img"/ onclick="mb(14,this)">';
    page+='</div>';
    page+='<div class="m15">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m15.jpg"class="MB-img"/ onclick="mb(15,this)">';
    page+='</div>';
     page+='<div class="m16">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m16.jpg"class="MB-img"/ onclick="mb(16,this)">';
    page+='</div>';
     page+='<div class="m17">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m17.jpg"class="MB-img"/ onclick="mb(17,this)">';
    page+='</div>';
     page+='<div class="m18">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m18.jpg"class="MB-img"/ onclick="mb(18,this)">';
    page+='</div>';
     page+='<div class="m19">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m19.jpg"class="MB-img"/ onclick="mb(19,this)">';
    page+='</div>';
     page+='<div class="m20">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m20.jpg"class="MB-img"/ onclick="mb(20,this)">';
    page+='</div>';
     page+='<div class="m21">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m21.jpg"class="MB-img"/ onclick="mb(21,this)">';
    page+='</div>';
     page+='<div class="m22">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m22.jpg"class="MB-img"/ onclick="mb(22,this)">';
    page+='</div>';
    $('.MB').html(page);
}
//插页
function Chaye(){
    $('.Images1').html('');
    var page = "";
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/c1.jpg" class="PhotoImg1 PhotoImg" onclick="chooseinsets(1,2)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m1.jpg" class="MB-img ima_mb" onclick="chooseinsets(1,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m2.jpg" class="MB-img ima_mb" onclick="chooseinsets(2,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m3.jpg" class="MB-img ima_mb" onclick="chooseinsets(3,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m4.jpg" class="MB-img ima_mb" onclick="chooseinsets(4,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m5.jpg" class="MB-img ima_mb" onclick="chooseinsets(5,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m6.jpg" class="MB-img ima_mb" onclick="chooseinsets(6,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m7.jpg" class="MB-img ima_mb" onclick="chooseinsets(7,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m8.jpg" class="MB-img ima_mb" onclick="chooseinsets(8,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m9.jpg" class="MB-img ima_mb" onclick="chooseinsets(9,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m10.jpg" class="MB-img ima_mb" onclick="chooseinsets(10,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m11.jpg" class="MB-img ima_mb" onclick="chooseinsets(11,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m12.jpg" class="MB-img ima_mb" onclick="chooseinsets(12,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m13.jpg" class="MB-img ima_mb" onclick="chooseinsets(13,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m14.jpg" class="MB-img ima_mb" onclick="chooseinsets(14,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m15.jpg" class="MB-img ima_mb" onclick="chooseinsets(15,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m16.jpg" class="MB-img ima_mb" onclick="chooseinsets(16,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m17.jpg" class="MB-img ima_mb" onclick="chooseinsets(17,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m18.jpg" class="MB-img ima_mb" onclick="chooseinsets(18,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m19.jpg" class="MB-img ima_mb" onclick="chooseinsets(19,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m20.jpg" class="MB-img ima_mb" onclick="chooseinsets(20,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m21.jpg" class="MB-img ima_mb" onclick="chooseinsets(21,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/concise/m22.jpg" class="MB-img ima_mb" onclick="chooseinsets(22,1)"/>';
    $('.Images1').html(page);

}
$('.more').click(function(){
	$('.ima_mb').css('display','none');
	$('.PhotoImg').css('display','block');
})
$('.more_1').click(function(){
	$('.ima_mb').css('display','block');
	$('.PhotoImg').css('display','none');
})
